import http from '../request/index.js'
/**
 *   密码加密
 *  
 */
export function encryption(pwd) {
	var content = ""
	for (let x in pwd) {
		let u = pwd.charCodeAt(x)
		content += (String(u * (x + 1) + 111) + "-")
	}
	return content.substr(0, content.length - 1)
}

export function getRole(id, feelback) {

}

export function getUUID() {
	return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
		return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16)
	})
}
